<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt"  prefix="fmt" %>

<fmt:setBundle basename="ApplicationResources" />

<table class="framed" align="center" width="100%" cellspacing="2" 
                      cellpadding="2" border="0">

<c:if test="${sessionScope.USERSESSION.employee}">
  <tr>
    <td>
      <a href="<c:url value="/protected/courseSubmitStart.do"/>">
        <fmt:message key="menu.courseSubmit"/>
      </a>
    </td>
  </tr>
  <tr>
    <td>
      <a href="<c:url value="/protected/employeeHistory.do"/>">
        <fmt:message key="menu.personalHistory"/>
      </a>
    </td>
  </tr>
</c:if>

<c:if test="${sessionScope.USERSESSION.manager}">
  <tr>
    <td>
      <a href="<c:url value="/protected/viewCoursesForApproval.do"/>">
        <fmt:message key="menu.coursesForApproval"/>
      </a>
    </td>
  </tr>
  <tr>
    <td>
      <a href="<c:url value="/protected/employeeList.do"/>">
        <fmt:message key="menu.employeeHistory"/>
      </a>
    </td>
  </tr>
</c:if>

<c:if test="${sessionScope.USERSESSION.admin}">
  <tr>
    <td>
      <a href="<c:url value="/admin/view"/>">
        <fmt:message key="menu.userManage"/>
      </a>
    </td>
  </tr>
  <tr>
      <td>
        <a href="<c:url value="/admin/displayDept"/>">
          <fmt:message key="menu.deptManage"/>
        </a>
      </td>
  </tr>
</c:if>

<tr>
  <td>
    <a href="<c:url value="/logout.do"/>">
      <fmt:message key="menu.logout"/>
    </a>
  </td>
</tr>
</table>

